package io.persimmon.core.module.lock;

import io.persimmon.core.module.lock.constant.LockResult;
import io.persimmon.core.module.lock.constant.UnLockResult;

public interface Lock {
    LockResult tryLock(String key, long waitMills) throws Exception;

    UnLockResult unLock(String key);

}
